#include <stdio.h>
#include <stdlib.h>
#include <string.h>


int immobility()
{
	int *p;
	int d;
	int i;

	scanf("%d", &d);
	p = (int*)malloc(sizeof(int) * d);

	for (i = 0; i < d; i++) {
		*(p + i) = i + 1;
	}

	for (i = 0; i < d; i++) {
		printf("\t%d\n", *(p + i));
	}

	free(p);

	return 0;
}

int dynamic()
{
	int *p;
	int i;

	for (i = 0; i < 10; i++) {
		p = (int *)malloc(sizeof(int));
		*p = i + 11;
	}

	for (i = 0; i < 10; i++) {
		printf("\t%d\n", *(p + i));
	}
}

int main()
{
	//immobility();
	dynamic();

	return 0;
}
